<?php
$urlhost = empty($_SERVER["SERVER_NAME"])?$_SERVER["HTTP_HOST"]:$_SERVER["SERVER_NAME"];
if($urlhost == 'zq.zhongsou.com' || $urlhost=='kaifa.zq.zhongsou.com'){
	$dbhost='103.7.222.62';
	$dbhost_r='';
	$dbuser='root';
	$dbpass='zhs20151117';
	$dbname='qiyuedb_new';
	$port=3306;
	$dbbefore='tp_';
	$mongoserver='103.7.222.33:27017';
	$mongodb='qiyue';
}else{
	$dbhost='103.7.222.41';
	$dbhost_r='';
	$dbuser='b2ctest';
	$dbpass='B2@c@2tE8T';
	$dbname='qiyuedb';
	$port=3306;
	$dbbefore='tp_';
	$mongoserver='103.7.222.33:27017';
	$mongodb='qiyue';
}
return array(
//地址
    "host"=>$dbhost,
    "host_r"=>$dbhost_r,
//端口
    "port"=>$port,
//账号密码
    "user"=>$dbuser,
    "pass"=>$dbpass,
//默认数据库名
    "name"=>$dbname,
//是否开启了PDO
    "pdo"=>false,

//数据表前缀 为空则需要使用完整表名
    "dbbefore"=>$dbbefore,
//mongo 地址
    'mongo_server'=>$mongoserver,
//mongo 库
    'mongo_db' =>$mongodb
);